package cn.net.sinodata.system.domain.bo;

import cn.net.sinodata.system.domain.PmPriority;
import cn.net.sinodata.common.mybatis.core.domain.BaseEntity;
import cn.net.sinodata.common.core.validate.AddGroup;
import cn.net.sinodata.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 优先级管理业务对象 pm_priority
 *
 * @author yinliangyun
 * @date 2025-10-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PmPriority.class, reverseConvertGenerate = false)
public class PmPriorityBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 优先级编号
     */
    @NotBlank(message = "优先级编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String priorityNo;

    /**
     * 优先级名称
     */
    @NotBlank(message = "优先级名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String priorityName;

    /**
     * 备注
     */
    private String remark;

}
